﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GeoVision.Addin.Core.ShapeCore;
using Microsoft.Office.Interop.Visio;
using GeoVision.Addin.Core.Spatial;

namespace GeoVision.Addin.Core
{
    public sealed class SHPFileVisioGenerator : GeometryVisioGenerator
    {
        public string FileName { get; private set; }
        public override void Draw()
        {
            _shapeDisplay.ReadShapeFile();
        }

        private ShapeDisplay _shapeDisplay;

        public ShapeDisplay ShapeDisplay
        {
            get { return _shapeDisplay; }
            set { _shapeDisplay = value; }
        }

        public SHPFileVisioGenerator(Page page, string fileName, VisShapeCreationInfo creationInfo)
            : base(page, creationInfo)
        {
            FileName = fileName;
            _shapeDisplay = new ShapeDisplay(this);
        }
    }
}
